import Vue from "vue";
import VueRouter from "vue-router";
import Home from "@/components/Home.vue";
import HomeContent from "@/components/HomeContent.vue";
import Tally from "@/components/Tally.vue";
import Tags from "@/components/Tags.vue";
import account from "@/components/Account.vue";

Vue.use(VueRouter);

const routes = [
    {
        path: "/",
        redirect: "/home",
        name: "Home",
        component: Home,
        children: [
            {
                path: "home",
                component: HomeContent,
            },
            {
                path: "tally",
                component: Tally
            },
            {
                path: "tags",
                component: Tags
            },
            {
                path: "account",
                component: account
            }
        ]
    },
];
const router = new VueRouter({
    routes
});
export default router;
